<template>
  <input type="text" v-focus>

  <button v-permision="roles">按钮啊</button>
</template>

<script>
  import {ref} from 'vue';

  export default {
    name: "directive",
    setup(props) {
      let roles = ref(['admin', 'teacher']);
      return {
        roles
      }
    }
  }
</script>

<style scoped>

</style>
